<?
class CouponBO extends BusinessObject{
  /* private function using in constructors*/
  function setAttributes(){
    $this->fields     = array(
        'id'          =>  'couponID',
        'number'      =>  'couponNumber',
        'groupname'   =>  'couponGroupName',
        'exp_date'    =>  'couponExpDate',
        'create_date' =>  'couponCreateDate'
		);

    BusinessObject::setAttributes();
  }
  /* constuctor */
  function CouponBO(){
    /** super(tableName) */
    BusinessObject::BusinessObject("coupons");
    $this->setAttributes();
  }
}
?>
